package com.dibang.app.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.dibang.app.R;
import com.dibang.app.mvp.base.BaseActivity;
import com.dibang.app.mvp.util.ViewUtil;
import com.dibang.app.operation.control.abs.LoginControl;
import com.dibang.app.operation.control.impl.LoginControlImpl;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by wxl on 2019/7/16.
 *
 */

public class LoginActivity extends BaseActivity<LoginControl,LoginControlImpl> {

    @BindView(R.id.activity_menu_id)
    TextView menuView;

    @BindView(R.id.activity_title_id)
    TextView titleView;


    @Override
    protected int onCreateBindViewLayoutId(@Nullable Bundle savedInstanceState) {
        return R.layout.activity_login_layout;
    }

    @Override
    protected View onCreateBindViewUpdate(int layoutId, @Nullable Bundle savedInstanceState) {
        return ViewUtil.generateActivityViewContainerTitleView(this, layoutId,R.color.translucent_color);
    }

    @Override
    protected void onCreateBindViewChanged(@Nullable Bundle savedInstanceState) {
        ButterKnife.bind(this);
        menuView.setText("验证码登录");
        menuView.setTextColor(getResColor(R.color.blue_gradient_end_color));
        titleView.setText("密码登录");
    }


}
